home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 30 / PC Gamer IT CD 30 1-2.iso / MOTS / GAMEDATA / RESOURCE / JKMRES.GOO / cog_item_heavy_explosive.cog < prev    next >
Text File  |  1998-02-25  |  1KB  |  61 lines

  1. # Jedi Knight Missions Cog Script
  2. #
  3. # ITEM_HEAVY_EXPLOSIVE.COG
  4. #
  5. # INVENTORY script - Heavy Explosive
  6. # Bin 53
  7. #
  8. # [YB] + [RF] + [TNT]
  9. #
  10. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  11.  
  12.  
  13. symbols
  14.  
  15. message     activated
  16. message    user0
  17. message    user1
  18.  
  19. sound       keysound=BactaUse01.WAV
  20.  
  21. thing       player            local
  22.  
  23. template    explosive_tpl=EC.3do    local
  24.  
  25. int        ready=0            local
  26. int        explosive            local
  27.  
  28. cog        endlevel            local
  29.  
  30. end
  31.  
  32.  
  33. code
  34.  
  35. activated:
  36.     endlevel=GetMasterCog();
  37.     // Print("Invcog sending user1 message to endlevel.  Activated.");
  38.     SendMessage(endlevel, user1);
  39.     Return;
  40.  
  41. user1:
  42.         If(ready) return;
  43.         ready=1;
  44.         player=GetLocalPlayerThing();
  45.         // Print("Invcog received message from endlevel.");
  46.         // Print("Invcog says: Player is on dome!");
  47.         jkPrintUNIString(player, 273);        // "Heavy Explosive"
  48.         PlaySoundLocal(keysound, 1.0, 0.0, 0);
  49.         PlayMode(player, 16);
  50.         Sleep(1.0);
  51.         SendMessage(endlevel, user2);
  52.         // Print("invcog sending user2 message to endlevel");
  53.     Return;
  54.  
  55.  
  56. end
  57.  
  58.  
  59.  
  60.